package j04meiju;

public class J1 {
    public static void main(String[] args) {
        String direction = "top";
        switch (direction){
            case "top6":
                //...
                break;
            case "right":
                break;
        }

        Direction d1 = Direction.RIGHT;
        d1 = Direction.top;
        switch (d1){
            case RIGHT:
                System.out.println("you");
                break;
            case top:
                System.out.println("you");
                break;
        }
        System.out.println("============");
        System.out.println(Direction.RIGHT);//对象
        System.out.println(Direction.RIGHT instanceof Direction);

        String str = "abc";
    }
}
